package xju.springboot_maven11_12.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "friend")
@Data
public class Friend {

    private String name;
    private int age;
}
